package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.TestMemberDao;
import com.itheima.pojo.Member;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Service(interfaceClass = TestMemberService.class)
@Transactional
public class TestMemberServiceImpl implements TestMemberService{
    @Autowired
    private TestMemberDao testMemberDao;
    @Override
    public Member findMember(String telephone) {
        return testMemberDao.findMember(telephone);
    }

    @Override
    public void editMember(Member member) {
        testMemberDao.editMember(member);
    }
}
